VERSION 5.00
Object = "{DA729E34-689F-49EA-A856-B57046630B73}#1.0#0"; "progressbar-xp.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Progressbar estilos Xp y varios"
   ClientHeight    =   5100
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7410
   LinkTopic       =   "Form1"
   ScaleHeight     =   5100
   ScaleWidth      =   7410
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Desactivar"
      Height          =   375
      Left            =   5400
      TabIndex        =   20
      Top             =   1080
      Width           =   1695
   End
   Begin VB.Timer Timer1 
      Interval        =   50
      Left            =   5160
      Top             =   4440
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   4200
      Top             =   5280
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Color progreso"
      Height          =   375
      Left            =   5400
      TabIndex        =   19
      Top             =   600
      Width           =   1695
   End
   Begin VB.Frame Frame1 
      Caption         =   "Estilos ( Propiedad Scolling )"
      Height          =   4935
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   7215
      Begin VB.CheckBox Check1 
         Caption         =   "Mostrar leyenda"
         Height          =   255
         Left            =   5280
         TabIndex        =   21
         Top             =   1440
         Width           =   1575
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   0
         Left            =   1440
         TabIndex        =   2
         Top             =   480
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   1
         Left            =   1440
         TabIndex        =   4
         Top             =   960
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   1
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   2
         Left            =   1440
         TabIndex        =   6
         Top             =   1440
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   2
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   3
         Left            =   1440
         TabIndex        =   8
         Top             =   1920
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   3
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   4
         Left            =   1440
         TabIndex        =   10
         Top             =   2400
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   4
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   5
         Left            =   1440
         TabIndex        =   12
         Top             =   2880
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   5
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   6
         Left            =   1440
         TabIndex        =   14
         Top             =   3360
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   16777215
         Scrolling       =   6
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   7
         Left            =   1440
         TabIndex        =   16
         Top             =   3840
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   7
         Value           =   50
      End
      Begin Proyecto2.XP_ProgressBar XP_ProgressBar1 
         Height          =   375
         Index           =   8
         Left            =   1440
         TabIndex        =   18
         Top             =   4320
         Width           =   3015
         _ExtentX        =   5318
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BrushStyle      =   0
         Color           =   12937777
         Scrolling       =   9
         Value           =   50
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Metalico"
         Height          =   195
         Index           =   9
         Left            =   240
         TabIndex        =   17
         Top             =   4320
         Width           =   600
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Custom Brush"
         Height          =   195
         Index           =   7
         Left            =   240
         TabIndex        =   15
         Top             =   3840
         Width           =   975
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Media player"
         Height          =   195
         Index           =   6
         Left            =   240
         TabIndex        =   13
         Top             =   3360
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Java T"
         Height          =   195
         Index           =   5
         Left            =   240
         TabIndex        =   11
         Top             =   2880
         Width           =   495
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Pastel"
         Height          =   195
         Index           =   4
         Left            =   240
         TabIndex        =   9
         Top             =   2400
         Width           =   435
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Office xp"
         Height          =   195
         Index           =   3
         Left            =   240
         TabIndex        =   7
         Top             =   1920
         Width           =   630
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Search"
         Height          =   195
         Index           =   2
         Left            =   240
         TabIndex        =   5
         Top             =   1440
         Width           =   510
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Smooth"
         Height          =   195
         Index           =   1
         Left            =   240
         TabIndex        =   3
         Top             =   960
         Width           =   540
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Normal"
         Height          =   195
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   480
         Width           =   495
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer

Private Sub Check1_Click()
    
    Dim x As Integer
    
    For x = 0 To XP_ProgressBar1.Count - 1
       XP_ProgressBar1(x).ShowText = Not XP_ProgressBar1(x).ShowText
    Next

    
End Sub

Private Sub Command1_Click()
           
    CommonDialog1.ShowColor
    
    For i = 0 To XP_ProgressBar1.Count - 1
        XP_ProgressBar1(i).Color = CommonDialog1.Color
    Next
    
    
End Sub

Private Sub Command2_Click()
    Timer1.Enabled = Not Timer1.Enabled
    
    If Timer1 Then
       Command2.Caption = "Desactivar"
    Else
       Command2.Caption = "Activar"
    End If

End Sub

Private Sub Command3_Click()
XP_ProgressBar1(0).Orientation = ccOrientationVertical
End Sub

Private Sub Timer1_Timer()

If XP_ProgressBar1(0).Value >= XP_ProgressBar1(0).Max Then
   For i = 0 To XP_ProgressBar1.Count - 1
      XP_ProgressBar1(i).Value = 0
   Next
Else
   For i = 0 To XP_ProgressBar1.Count - 1
        XP_ProgressBar1(i).Value = XP_ProgressBar1(i).Value + 1
   Next
End If
End Sub
